package com.turing.post.tuxedo.util;

import java.io.Serializable;
import java.math.BigInteger;

import org.jdom2.Element;

import com.turing.post.util.PCPSApplicationException;

/**
 * 支付撤销冲正交易输入
 * 
 * @author yxb
 * 
 */
@SuppressWarnings("serial")
public class IPaidCancelCorr extends TransRequest implements Serializable {
	/**
	 * 合计发生额(分)
	 */
	public BigInteger totalAmount = BigInteger.ZERO;

	/**
	 * 产生计算MAC的域
	 */
	@Override
	protected void generateMacField() {
	}

	/**
	 * 解析交易请求私有报文体
	 * 
	 * @param reqBody
	 * @throws Exception
	 */
	@Override
	protected void parseReqBodyXml(Element reqBody)
			throws PCPSApplicationException {
		// 合计发生额(分)
		totalAmount = TransXmlHelper.getInteger(reqBody,
				TransXmlHelper.XML_NODE_TotalAmount);
	}
}
